package Year2021.month10.Day21.Day29Interface;

public class IntelCpu implements Cpu {
    private String brand;
    private String dominantFrequency;//主频;

    public IntelCpu(String brand, String dominantFrequency) {
        this.brand = brand;
        this.dominantFrequency = dominantFrequency;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getBrand() {
        return brand;
    }

    public String getDominantFrequency() {
        return dominantFrequency;
    }

    public void setDominantFrequency(String dominantFrequency) {
        this.dominantFrequency = dominantFrequency;

    }

    @Override
    public String show() {
        return "主频为" + dominantFrequency + "的" + brand;

    }


}
